#pragma once

#include "../Socket.h"

class ESeviceObserver
{
public:
    virtual void OnSeviceCallback(int, int) = 0;
	
};


class BaseSevice
{

public:
    BaseSevice(/* args */);
    virtual ~BaseSevice();
    
    void setObserver(ESeviceObserver *ob);
    void setSocket(Socket *sc);
    void setPeerfd(int pfd){ peerfd = pfd;}
    virtual void doHandle(const char *pDataBuffer);

protected:
	ESeviceObserver*         mObserver;
    Socket *mSocket;
    int    peerfd;

};